﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccessLayer;
using Common;

namespace VMS_Web
{
    public partial class RefreshCache : System.Web.UI.Page
    {
        protected MainMaster CurrentMasterPage = null;

       // private Master_Item_Types_DB ObjMaster_Item_Types_DB = null;

        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);

            CurrentMasterPage = (MainMaster)this.Master;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            Cache["Master_Items"] = new Master_Items_DB().GetAllMastersForRateMaster();
             

            CurrentMasterPage.MessageToDisplay(Common.MessageType.Information, "All Cache memorys are refreshed.So you get revised fresh copy of master details");
        }
    }
}